//
//  UILabel + Extension.swift
//  Residual_memmem
//
//  Created by 武振磊 on 16/7/21.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

extension UILabel{
    ///   遍历构造函数
    ///   - parameter title:    text
    ///   - parameter color:    color
    ///   - parameter textFont: font
    ///   - returns: UILabel
    convenience init(title: String, color: UIColor, textFont: CGFloat){
        self.init()
        
        text = title
        textColor = color
        textAlignment = NSTextAlignment.Center
        font = UIFont.systemFontOfSize(textFont)
        numberOfLines = 0
    }
}
